
function toast(text,type){
    swal({
        text:text,
        timer:1500,
        icon:type,
        buttons:false
    })
}

function toastSuccess(text){
    toast(text,'success')
}
function toastError(text){
    toast(text,'error')
}
function toastInfo(text){
    toast(text,'info')
}
function toastInfoWarning(text){
    toast(text,'warning')
}

const myalert = {
    toastInfoWarning,
    toastSuccess,
    toastError,
    toastInfo
}

